<!DOCTYPE html>
<html>
	<head>
		<meta name="" content="" />
		<title>灰度</title>
		<style>
			img {
				filter: grayscale(100%);
			}
		</style>
	</head>
	<body>
		<p>图片转为黑白色:</p>
		<img src="../css动画/img/dog.jpg" width="300" height="300">
	</body>
</html>
